Skip to content

Exposed a few additional APIs#89

Closed
sarbogast wants to merge 1 commit intoPSPDFKit:masterfrom
scorelyr:master
Closed

Exposed a few additional APIs#89
sarbogast wants to merge 1 commit intoPSPDFKit:masterfrom
scorelyr:master

Conversation

@sarbogast
Copy link

Details

In order to integrate PSPDFKit into my Flutter application, I needed a few additional APIs to be exposed:

  • the restoreLastViewedPage flag to have the possibility to disable this restoration when switching from one PDF to another
  • a notification when the user leaves the annotation creation mode by clicking the close button in the annotation toolbar
  • a method to programmatically enter into annotation creation mode so that I can hide the toolbar and do this from my own UI
  • a method to programmatically jump to a specific page, to enable navigation from my own UI
  • a method to determine whether the viewer is currently displaying 2 pages or just one, in case pageLayoutMode is automatic and the viewer decides how many pages to show based on orientation

For now, custom methods are only implemented in iOS and Android, not on the web as I didn't need them there.

Acceptance Criteria

  • Before merging retest all the examples to make sure that they work on both Android and iOS.

@mutumbakato
Copy link
Contributor

Hi @sarbogast, Thanks for your contributions. But unfortunately we don’t accept PRs on this repository, so I’ll close this one.

@mutumbakato mutumbakato closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants